package Strategy.cashier;

/**
 * @author duanzhizhou
 * @date 2024/9/25
 */
public class RebateCashier implements Cashier {
    
    private double discount;
    
    public RebateCashier(double discount) {
        this.discount = discount;
    }
    
    @Override
    public double check(double price, int cnt) {
        return price * cnt * discount;
    }
}
